import pyE17
import matplotlib.pyplot as plt
import matplotlib.cm as cm

a = pyE17.utils.imload('sample_crop_1.png').astype(float)
a1 = pyE17.utils.rebin(a, 1024, 1024)

plt.imshow(a1, interpolation='bilinear', cmap=cm.gray)

plt.show()

pyE17.io.h5write('object_0.h5', object=a1)
